home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tclX-6.4 / help / keyedlists / keylget < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.0 KB  |  22 lines

  1.  
  2.  
  3.           keylget listvar [key [retvar | {}]]
  4.                Return the value associated with key from the keyed
  5.                list in the variable listvar.  If retvar is not
  6.                specified, then the value will be returned as the
  7.                result of the command. In this case, if key is not
  8.                found in the list, an error will result.
  9.  
  10.                If retvar is specified and key is in the list, then the
  11.                value is returned in the variable retvar and the
  12.                command returns 1 if the key was present within the
  13.                list.  If key isn't in the list, the command will
  14.                return 0, and retvar will be left unchanged.  If {} is
  15.                specified for retvar, the value is not returned,
  16.                allowing the Tcl programmer to determine if a key is
  17.                present in a keyed list without setting a variable as a
  18.                side-effect.
  19.  
  20.                If key is omitted, then a list of all the keys in the
  21.                keyed list is returned.
  22.